﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="black" name="apple-mobile-web-app-status-bar-style">
    <meta content="telephone=no" name="format-detection" />
    <title>首页</title>
    <script src="js/jquery/jquery-1.8.1.min.js" type="text/javascript"></script>
    <script src="js/config.js" type="text/javascript"></script>
    <link href="css/style.css" rel="stylesheet" type="text/css" />
    <link href="css/btnsty.css" rel="stylesheet" type="text/css" />
    <script src="js/Toast.js" type="text/javascript"></script>
    <style>
        #btns
        {
          padding:10px;
        }
        .menu_lsit
        {
            display: block;
            width: 100%;
        }
        .a_menu
        {
            position: absolute;
        }
        .a_menu a
        {
            float: left;
            padding: 5px;
        }
        .a_menu a div
        {
            width: 60px;
            height: 45px;
        }
        .a_menu a img
        {
            position: fixed;
            padding-left: 50px;
            padding-top: 30px;
            height:20px;
            width:20px;
            display:none;
        }
    </style>
    <script type="text/javascript">
        $(function () {
            $("#btn_out").live("click", function () {
                if (confirm("确认退出?")) {

                    localStorage.removeItem("UserID");
                    localStorage.removeItem("UserCode");
                    localStorage.removeItem("UserName");
                    window.location.href = 'login.html';
                }
            });
            $(".a_btn").live("click", function () {
                USER_ID = localStorage.getItem("UserID");
                //alert(USER_ID);
                var url = $(this).attr("url");
                var mcode = $(this).attr("mid");
                $.ajax({
                    url: url_path + "/ajaxdata/Default.aspx",
                    type: "POST",
                    data: { aciton: 'CheckRights', modecode: mcode, userid: USER_ID },
                    timeout: 30000,
                    dataType: "text",
                    success: function (data) {
                        var msg = $.trim(data);
                        if (msg == "NO_RIGHT") {
                            showtoast("没有权限访问！", null, null, null);
                        } else {
                            window.location.href = url;
                        }
                    },
                    error: function () {
                        showtoast("通讯超时,请检查网络.", null, 100, 100);
                    }
                });
            });
            //            $.post(url_path + "/ajaxdata/login.aspx",
            //                    { aciton: 'GetUser' },
            //                     function (data) {
            //                         var msg = $.trim(data);
            //                         if (msg == "NOUSER") {
            //                             showtoast("登录信息过期，请重新登录！",null,null,null);
            //                             window.location.href = 'login.html';
            //                         }
            //                     });

        });
    </script>
</head>
<body>
    <div id="header" class="head">
        <div class="wrap">
            <i class="menu_open"></i>
            <div class="title">
                <span class="title_d">
                    <p>
                        KM移动数据平台</p>
                </span>
                <div class="clear">
                </div>
            </div>
             <i style="position: fixed; right: 3px;top:15px;"><a href="#" class="button" id="btn_out">注销</a></i>
        </div>
        <div class="logo_msk">
        </div>
    </div>
    <div id="container">
        <div>
            <div id="btns">
                <ul>
                    <li>
                        <div class="wrap">
                            <div class="menu_lsit">
                                数据查询
                                <div class="a_menu">
                                    <a class="a_btn" mid="M_PRT1" url="report1.html" href="#">
                                        <div class="button s_medium medium-red">
                                            <img src="images/chart_bar.png" /><span>移动数据查询（公司）</span></div>
                                    </a><a class="a_btn" mid="M_PRT2" url="report2.html" href="#">
                                        <div class="button s_medium medium-blue">
                                            <img src="images/chart_bar.png" />移动数据查询（店铺）</div>
                                    </a>
                                </div>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <script language="javascript" src="js/zepto.min.js"></script>
    <script language="javascript" src="js/fx.js"></script>
    <script language="javascript" src="js/script.js"></script>
</body>
</html>
